import request from '@/utils/request'

// 查询问诊记录列表
export function listRecord(query) {
  return request({
    url: '/websocket/record/list',
    method: 'get',
    params: query
  })
}

// 查询问诊记录详细
export function getRecord(id) {
  return request({
    url: '/websocket/record/getRecordById',
    method: 'get',
    params: {
      id
    }
  })
}

// 新增问诊记录
export function addRecord(data) {
  return request({
    url: '/websocket/record',
    method: 'post',
    data: data
  })
}

// 修改问诊记录
export function updateRecord(data) {
  return request({
    url: '/websocket/record',
    method: 'put',
    data: data
  })
}

// 删除问诊记录
export function delRecord(ids) {
  return request({
    url: '/websocket/record/batchDeleteByIds',
    method: 'post',
    params: {
      ids
    }
  })
}
